<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<cfoutput>
<cfform method="post" preloader="no" action="swipe.cfm">

<cfinput type="text" name="cc">
<label>
<cfinput type="submit" name="Submit" value="Submit">
</label>
</cfform>

<!---<cfif isdefined("form.cc")>--->
<cfset parmlist=URLEncodedFormat('un~demo123|pswd~demo123|method~processtranx|tranxtype~sale|terms~Y|swipe~%B4012881888818888^JOHN JONES             ^1511101023370001000000546000000?;4012881888818888=15111010233754600001?|amount~1.00|baddress~1234 Main|bzip~99201|invoice~123456abcd|')>
<cfhttp url="https://PayTrace.com/API/default.pay?parmList=#parmlist#"></cfhttp>


  #trim(cfhttp.filecontent)#
  
  <cfset checkcust = "#cfhttp.filecontent#">

 <cfset checkone = listGetAt(checkcust, 1, "~")>
  <cfset checktwo = listGetAt(checkcust, 2, "~")>
 <cfset checkthree = listGetAt(checktwo, 1,".")>
  <cfset checkfour = listGetAt(checktwo, 2,".")>

#cfhttp.filecontent#<br />
 process code: #checkthree#
<!---<CFQUERY NAME="getcodes" DATASOURCE="#Datasource#">
select *
from tblresponsecodes
where Code = #checkthree#
</CFQUERY>--->


<!---</cfif>--->
</cfoutput>
</body>
</html>
